<template>
  <div>
    <span>{{ shopName }}</span>
    <button @click="add(ind)">+</button>
    <span> {{ count }} </span>
    <button @click="sec(ind)">-</button>
  </div>
</template>

<script>
export default {
  props: ["shopName", "count", "ind"],
  methods: {
    add(ind) {
      this.$emit("jia", ind);
    },
    sec(ind) {
      this.$emit("jian", ind);
    },
  },
};
</script>

<style>
</style>